<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>

<form id="addFeedbackForm" action="${ctxPath}/feedback.html" onsubmit="addFeedback();return false;" method="post">
    <div class="feedback_form">
		<div class="content">
			<h3><fmt:message key="feedbackList.addFeedbackTitle"/></h3>
			<table cellspacing="0" cellpadding="0" border="0" width="100%">
		    	<c:if test="${empty currUser}">
		    		<%--如果允许匿名用户发表反馈且当前未登录 --%>
		    		<tr>
		    			<th>
				    		<fmt:message key="feedbackForm.customerName"/>:
		    			</th>
		    			<td>
		    				<span><input class="inputtxt3" style="width:200px;" id="customerName" name="customerName" /></span>
		    			</td>
		    		</tr>
		    		<tr>
		    			<th>
				    		<fmt:message key="feedbackForm.contact"/>:
		    			</th>
		    			<td>
				    		<span><input class="inputtxt3" style="width:200px;" id="contact" name="contact" /></span>（<fmt:message key="feedback.contact.tip"/>）
		    			</td>
		    		</tr>
		    	</c:if>
		    	<tr>
		    		<th>
						<fmt:message key="feedbackForm.message"/>:
		    		</th>
		    		<td>
		    			<span><textarea cols="" rows="5" class="textareatxt" style="width:400px" id="message" name="message" ></textarea></span>
		    		</td>
		    	</tr>
		    	<tr>
		    		<th>
		    		</th>
		    		<td>
						<input type="hidden" name="doAction" value="addFeedback"/>
						<input type="hidden" name="productId" value="${product.productId}"/>
						<input id="addFeedbackSubmit"  type="submit" class="submit" value=""/>
		    		</td>
		    	</tr>
		    </table>	
		</div>
	</div>
</form>	

